package com.zl.gmadmin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zl.gmadmin.payload.BlogArticleQueryCriteria;
import com.zl.gmadmin.entity.BlogArticle;

import java.io.Serializable;
import java.util.Collection;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ZhangLiang
 * @Date: 2021/08/24/12:47
 * @Description:
 */
public interface BlogArticleService  extends IService<BlogArticle> {

    /**
     * 分页查询
     * @param queryCriteria  查询条件
     * @param page  分页条件
     * @return
     */
    Object selectPageVo(BlogArticleQueryCriteria queryCriteria, Page<BlogArticle> page);

    /**
     * 保存
     * @param blogArticle
     */
    void saveBlogArticle(BlogArticle blogArticle);

    /**
     * 批量删除
     * @param idList
     * @return
     */
    @Override
     boolean removeByIds(Collection<? extends Serializable> idList) ;

    /**
     * 更新
     * @param blogArticle
     */
    void updateBlogArticle(BlogArticle blogArticle);
}
